projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c9f101
)
xen: Better handling on not-present PDEs in destroy_xen_mappings().
author
Keir Fraser
<keir@xensource.com>
Sat, 12 May 2007 11:37:51 +0000
(12:37 +0100)
committer
Keir Fraser
<keir@xensource.com>
Sat, 12 May 2007 11:37:51 +0000
(12:37 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/mm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm.c
b/xen/arch/x86/mm.c
index 9c57c2e725f16c7c962d95b3858d8ad06198d700..dd942085c29a85e0e40ae604be3143a9a76bc221 100644
(file)
--- a/
xen/arch/x86/mm.c
+++ b/
xen/arch/x86/mm.c
@@
-3503,7
+3503,8
@@
void destroy_xen_mappings(unsigned long s, unsigned long e)
if ( !(l2e_get_flags(*pl2e) & _PAGE_PRESENT) )
{
- v += PAGE_SIZE;
+ v += 1UL << L2_PAGETABLE_SHIFT;
+ v &= ~((1UL << L2_PAGETABLE_SHIFT) - 1);
continue;
}